#include "BulletCollision/Gimpact/btGImpactQuantizedBvhStructs.h"
#ifdef __cplusplus
extern "C" {
#endif
BT_QUANTIZED_BVH_NODE* bullet_NewBT_QUANTIZED_BVH_NODE(){
	BT_QUANTIZED_BVH_NODE* wrap_out = new BT_QUANTIZED_BVH_NODE();
	return wrap_out;
}

int bullet_BT_QUANTIZED_BVH_NODE_getDataIndex(BT_QUANTIZED_BVH_NODE* c_this){
	int c_out = c_this->getDataIndex();
	int wrap_out = (c_out);
	return wrap_out;
}

int bullet_BT_QUANTIZED_BVH_NODE_getEscapeIndex(BT_QUANTIZED_BVH_NODE* c_this){
	int c_out = c_this->getEscapeIndex();
	int wrap_out = (c_out);
	return wrap_out;
}

int bullet_BT_QUANTIZED_BVH_NODE_GetFieldOfM_escapeIndexOrDataIndex(BT_QUANTIZED_BVH_NODE* c_this){
	return (int)(c_this->m_escapeIndexOrDataIndex);
}

unsigned short** bullet_BT_QUANTIZED_BVH_NODE_GetFieldOfM_quantizedAabbMax(BT_QUANTIZED_BVH_NODE* c_this){
	return (unsigned short**)(&c_this->m_quantizedAabbMax);
}

unsigned short** bullet_BT_QUANTIZED_BVH_NODE_GetFieldOfM_quantizedAabbMin(BT_QUANTIZED_BVH_NODE* c_this){
	return (unsigned short**)(&c_this->m_quantizedAabbMin);
}

bool bullet_BT_QUANTIZED_BVH_NODE_isLeafNode(BT_QUANTIZED_BVH_NODE* c_this){
	bool c_out = c_this->isLeafNode();
	bool wrap_out = (c_out);
	return wrap_out;
}

void bullet_BT_QUANTIZED_BVH_NODE_setDataIndex(BT_QUANTIZED_BVH_NODE* c_this,int index){
	int c_arg_index=index;
	c_this->setDataIndex(c_arg_index);
}

void bullet_BT_QUANTIZED_BVH_NODE_setEscapeIndex(BT_QUANTIZED_BVH_NODE* c_this,int index){
	int c_arg_index=index;
	c_this->setEscapeIndex(c_arg_index);
}

bool bullet_BT_QUANTIZED_BVH_NODE_testQuantizedBoxOverlapp(BT_QUANTIZED_BVH_NODE* c_this,unsigned short* quantizedMin,unsigned short* quantizedMax){
	unsigned short * c_arg_quantizedMin=(unsigned short *)(void*)(quantizedMin);
	unsigned short * c_arg_quantizedMax=(unsigned short *)(void*)(quantizedMax);
	bool c_out = c_this->testQuantizedBoxOverlapp(c_arg_quantizedMin,c_arg_quantizedMax);
	bool wrap_out = (c_out);
	return wrap_out;
}

#ifdef __cplusplus
}
#endif
